<template>
  <div>
    <h6 class="tuijian">热门推荐</h6>
    <div>
      <div class="banxin">
        <div class="center1">
          <span @click="onpaixu"  class="jieshao">
            <img src="../assets/avatar/1.jpg" />
            <h6>威风蛋糕</h6>
          </span>
          <span @click="onpaixu"  class="jieshao">
            <img src="../assets/avatar/1.jpg" />
            <h6>威风蛋糕</h6>
          </span>
          
          <span class="jieshao">
            <img src="../assets/avatar/1.jpg" />
            <h6>威风蛋糕</h6>
          </span>
          <span class="jieshao">
            <img src="../assets/avatar/1.jpg" />
            <h6>威风</h6>
          </span>
          <span class="jieshao">
            <img src="../assets/avatar/1.jpg" />
            <h6>威风蛋糕</h6>
          </span>
          <span class="jieshao">
            <img src="../assets/avatar/1.jpg" />
            <h6>威风蛋糕</h6>
          </span>

          
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    onpaixu() {
      this.$router.push('/paixu')
    }
  },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
  
}
.center1 {
  display: flex;
  flex-wrap: wrap;

}
.tuijian {
  display: inline-block;
  margin-left: -226px;
}
img{
  border-radius: 15px 0 15px 0;
}
.jieshao{
  margin: 10px 0 0 14px;
}
</style>